package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.api.shopapi.entity.Report;
import com.api.shopapi.entity.dto.ReportDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface ReportService {

    int insert(Report report, JSONArray reportImgList);

    int update(Report report);

    int delete(String reportCode);

    Report getByReportCode(String reportCode);

    PageInfo<Report> getPageList(int pageIndex,int pageSize,String userCode);

    PageInfo<ReportDTO> GetPageByGovernment(int pageIndex,int pageSize,String userName,String governmentCode);
}
